package neu.soft.feign;

import neu.soft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@Component
@FeignClient(value = "user-server",fallbackFactory = UserFeignClientFallBackFactory.class)
public interface UserFeignClient {
    @PostMapping("/order/change")
    ResultBean changeOrderStatus(@RequestBody Map<String, Object> map);
}
